/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.practice;

import java.util.List;

import com.idenger.common.persistence.DataEntity;
import com.idenger.modules.edu.entity.selectiontitle.EduSelectionTitle;
import org.hibernate.validator.constraints.Length;

import com.idenger.modules.edu.entity.practicsubject.EduPracticSubject;

/**
 * 练习Entity
 * @author 兰正军
 * @version 2017-11-30
 */
public class EduPractice extends DataEntity<EduPractice> {
	
	private static final long serialVersionUID = 1L;
	private String sectionId;		// 章节（单元）ID
	private String score;		// 总分值
	private String title;		// 题目标题
	private String requirement;		// 要求
	private String subjectCount;		//习题数量
	private List<EduPracticSubject> practicSubjectList;//(练习题目关联表)
	private List<EduSelectionTitle>  eduSelectionTitleList;//题目列表

	public List<EduSelectionTitle> getEduSelectionTitleList() {
		return eduSelectionTitleList;
	}

	public void setEduSelectionTitleList(List<EduSelectionTitle> eduSelectionTitleList) {
		this.eduSelectionTitleList = eduSelectionTitleList;
	}

	public EduPractice() {
		super();
	}

	public EduPractice(String id){
		super(id);
	}

	@Length(min=0, max=64, message="章节（单元）ID长度必须介于 0 和 64 之间")
	public String getSectionId() {
		return sectionId;
	}

	public void setSectionId(String sectionId) {
		this.sectionId = sectionId;
	}
	
	@Length(min=0, max=10, message="总分值长度必须介于 0 和 10 之间")
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}
	
	@Length(min=0, max=64, message="题目标题长度必须介于 0 和 64 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=1024, message="要求长度必须介于 0 和 1024 之间")
	public String getRequirement() {
		return requirement;
	}

	public void setRequirement(String requirement) {
		this.requirement = requirement;
	}

	public List<EduPracticSubject> getPracticSubjectList() {
		return practicSubjectList;
	}

	public void setPracticSubjectList(List<EduPracticSubject> practicSubjectList) {
		this.practicSubjectList = practicSubjectList;
	}

	public String getSubjectCount() {
		return subjectCount;
	}

	public void setSubjectCount(String subjectCount) {
		this.subjectCount = subjectCount;
	}
	
}